package com.udima.reglocation.entities;

import org.json.JSONObject;

import android.app.Activity;

public class Configuration {
	//Inicializamos aquí valores por defecto
    private int period = 2;
    private String time;
	private String userName;
	
	private static String getDataURL = "http://10.0.2.2:8080/GeoUdimaServer/rest/users/uid002";
	
	private Activity activity = new Activity();
	
	public void getConf(Activity activity, String uid){
		//JSONObject responseJson = new JSONObject();
		this.activity = activity;
		//HttpClientManager httpclient = new HttpClientManager(activity);
				
		Configuration.this.setUsername("test set");
		
	}

	public interface OnGetData{
 		void onGetCorrect(JSONObject json, String msg);
 		void onGetWrong(String msg);
 	}
 	private OnGetData ListenerGetData;
 	public void setOnGetData(OnGetData l){ListenerGetData = l;}

	public String getTime(){
		return this.time;
	}
	
	public int getPeriod(){
		return this.period;
	}
	
	public void setPeriod(int period){
		this.period=period;
	}
	
	public String getUsername(){
		return this.userName;
	}
	
	public void setUsername(String userName){
		this.userName=userName;
	}
	
	public void reset(){
		this.period  = 1;
	}
}
